// 环境配置
const env = import.meta.env.MODE || 'development'

// 配置对象
const config = {
    development: {
        baseURL: 'http://localhost:8080',
        timeout: 10000,
        uploadURL: 'http://localhost:8080/api/upload'
    },
    production: {
        baseURL: '',
        timeout: 10000,
        uploadURL: '/api/upload'
    },
    test: {
        baseURL: 'http://test-api.example.com',
        timeout: 10000,
        uploadURL: 'http://test-api.example.com/api/upload'
    }
}

// 导出当前环境配置
export default config[env]

// 导出环境信息
export const isDev = env === 'development'
export const isProd = env === 'production'
export const isTest = env === 'test' 